package user;

import book.BookList;
import operation.IOOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: atp
 * Date: 2022-11-01
 * Time: 15:37
 */
public abstract class User {
    protected String name;
    protected IOOperation[] ioOperations;//只定义不初始化,内存不分配

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doOperation(int choice, BookList bookList) {
        ioOperations[choice].work(bookList);
    }
}
